From 1c796018d1dcba002766673c4070c9d98e95fadb Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Mon, 11 Mar 2013 18:12:23 -0600 Subject: [PATCH] filechooserbutton: During unselect_all(), update the widgets in all situations Not just if we thought we had a selection. Signed-off-by: Federico Mena Quintero --- gtk/gtkfilechooserbutton.c | 6 +++--- gtk/tests/filechooser.c | 13 ------------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c index 9fa5038bba..d561a8b995 100644 --- a/gtk/gtkfilechooserbutton.c +++ b/gtk/gtkfilechooserbutton.c @@ -716,10 +716,10 @@ gtk_file_chooser_button_unselect_all (GtkFileChooser *chooser) { g_object_unref (priv->selection_while_inactive); priv->selection_while_inactive = NULL; - - update_label_and_image (button); - update_combo_box (button); } + + update_label_and_image (button); + update_combo_box (button); } } diff --git a/gtk/tests/filechooser.c b/gtk/tests/filechooser.c index eb38213058..ac5c89969f 100644 --- a/gtk/tests/filechooser.c +++ b/gtk/tests/filechooser.c @@ -1441,19 +1441,6 @@ static FileChooserButtonTest button_tests[] = NULL, /* final_current_folder */ NULL /* final_filename */ }, - { - "unselect-all-4", - GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, - FOLDER_NAME, /* initial_current_folder */ - NULL, /* initial_filename */ - FALSE, /* open_dialog */ - NULL, /* tweak_current_folder */ - NULL, /* tweak_filename */ - 0, /* dialog_response */ - TRUE, /* unselect_all */ - NULL, /* final_current_folder */ - NULL /* final_filename */ - }, { "unselect-all-5", GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, -- 2.30.2